package com.meituan;

import com.meituan.config.AppConfig;
import com.meituan.service.HelloService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author
 * @see(功能介绍)
 */
public class Starter {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
		ctx.register(AppConfig.class);
		ctx.refresh();
		HelloService bean = ctx.getBean(HelloService.class);
		bean.say();
	}
}
